package com.wx.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.wx.dao.WxVoiceReplyMapper;
import com.wx.entity.WxVoiceReply;
import com.wx.entity.WxVoiceReplyExample;
import com.wx.service.WxVoiceReplyService;

@Service("wxVoiceReplyService")
public class WxVoiceReplyServiceImpl implements WxVoiceReplyService {

	private WxVoiceReplyMapper wxVoiceReplyMapper;
	
	@Override
	public int insert(WxVoiceReply wxVoiceReply) {
		return this.wxVoiceReplyMapper.insert(wxVoiceReply);
	}

	@Override
	public List<WxVoiceReply> selectByExample(WxVoiceReplyExample example) {
		return this.wxVoiceReplyMapper.selectByExample(example);
	}

	@Override
	public WxVoiceReply selectByPrimaryKey(Integer id) {
		return this.wxVoiceReplyMapper.selectByPrimaryKey(id);
	}

	@Override
	public int countByExample(WxVoiceReplyExample example) {
		return this.wxVoiceReplyMapper.countByExample(example);
	}

	@Override
	public int updateByExample(WxVoiceReply record, WxVoiceReplyExample example) {
		return this.wxVoiceReplyMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByPrimaryKey(WxVoiceReply record) {
		return this.wxVoiceReplyMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int deleteByPrimaryKey(Integer id) {
		return this.wxVoiceReplyMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int deleteByPrimaryKey(WxVoiceReplyExample example) {
		return this.wxVoiceReplyMapper.deleteByExample(example);
	}

	public WxVoiceReplyMapper getWxVoiceReplyMapper() {
		return wxVoiceReplyMapper;
	}

	@Resource
	public void setWxVoiceReplyMapper(WxVoiceReplyMapper wxVoiceReplyMapper) {
		this.wxVoiceReplyMapper = wxVoiceReplyMapper;
	}
}
